package com.justnow;

public class SyncThread implements Runnable {

    private static String lock = "lock";
    @Override
    public void run() {

            try {
                lock.wait();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

    }

    public static void main(String[] args) {
        new Thread(new SyncThread()).start();
    }
}
